<?php

class Loader {

    public static $dir = 'library';

    public static function load_classes()
    {
        $directory = dir(self::$dir);
        while ($entry = $directory->read())
        {
            if ($entry != "." && $entry != ".." && !in_array($entry, array('loader.php')) && !is_dir($entry))
            {
                require($entry);
            }
        }
    }

}
